package com.lin.cms.service;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

import com.lin.cms.criteria.UploadCriteria;
import com.lin.cms.domain.Upload;

public interface UploadService{
	
	Upload selectByPrimaryKey(String filename);
	
	List<Upload> selectByCriteria(UploadCriteria criteria);
	
	int deleteByPrimaryKey(String filename);
	
	int deleteByCriteria(UploadCriteria criteria);
	
	int insert(Upload upload);
	
	int updateByPrimaryKeySelective(Upload upload);
	
	int updateByPrimaryKey(Upload upload);
	
	List<Upload> selectByPage(UploadCriteria criteria);
	
	int countByCriteria(UploadCriteria criteria);
	
	String storeByFilename(String filename, InputStream in)
			throws IOException;
	
	String storeByExt(String path, String ext, InputStream in)
			throws IOException;
	
}
